package com.zyz.F_异常;

/**
 * @author: vick
 * @Date: 2025/3/18
 * @Description:
 * @version: 1.0
 */
public class Demo3 {

    public int div(int a, int b) throws Exception{
        /*try {
            int result = a/b;
            return result;
        }catch (Exception e) {
            e.printStackTrace();
        }finally {
            return -1;
        }*/

        return a/b;
    }

    public static void main(String[] args) throws Exception {
        Demo3 demo3 = new Demo3();
        demo3.div(10, 2);
    }
}
